<template>
  <div class="course-layout">
    <el-container>
      <el-header>
        <el-menu
          mode="horizontal"
          router
          :default-active="$route.path"
        >
          <el-menu-item index="/course/list">课程列表</el-menu-item>
          <el-menu-item index="/home">返回首页</el-menu-item>
        </el-menu>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<style scoped>
.course-layout {
  height: 100%;
}
.el-header {
  padding: 0;
}
</style> 